<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>06定位可以通过padding</title>
    <style>
      .content {
        width: 200px;
        height: 200px;
        background-color: skyblue;
        padding: 20px;
        position: relative;
      }

      .child {
        width: 20px;
        height: 30px;
        background-color: orange;
        position: absolute;
        top: 0;
        left: 0;
      }
    </style>
  </head>
  <body>
    <div class="content">
      <div class="child"></div>
    </div>
  </body>
</html>
